package com.camps.sdk.exception;

import com.camps.sdk.common.ExceptionCode;

import java.util.Base64;

/**
 * @Author ldaoliang
 * @Date create in 13:59 2021/9/1
 * @Description
 */
public class BaseException extends RuntimeException {
    private int code;
    private String message;

    public BaseException(){

    }

    public BaseException(ExceptionCode e){
        this.code = e.getCode();
        this.message = e.getMessage();
    }

    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
